package com.homedo.odin.solution.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.homedo.odin.solution.model.entity.SolutionRank;
import com.homedo.odin.solution.model.response.pc.solution.SolutionRankResponseBean;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> Mapper接口 </p>
 *
 * @author ZhangLei
 * @date 2018-05-15
 * @Description:
 */
public interface SolutionRankMapper extends BaseMapper<SolutionRank> {

    List<SolutionRank> querySolutionRank(@Param("rankType") Integer rankType);

    List<SolutionRank> querySolutionRankHot(@Param("rankType") Integer rankType);

    SolutionRank queryLateSolutionRank(@Param("rankType") Integer rankType);

    void updateSolutionRankStatusByType(@Param("solutionRank") SolutionRank updateSolutionRank);

    SolutionRank querySingleSolutionRank(@Param("solutionRank") SolutionRank solutionRank);

    List<SolutionRankResponseBean> selectSolutionBybizytpeDataSize(@Param("biztype") Integer biztype,
            @Param("dataSize") Integer dataSize, @Param("solutionExpType") Integer solutionExpType);
}